<form method="post" enctype="multipart/form-data" action="/models/brand_image/<?= $brand['Brand']['id']?>">
    <?= $this->Html->image("brands/" . $brand['Brand']['image'] . "?cb=".time(), array(
        'alt'   => $brand['Brand']['name'],
        'title' => $brand['Brand']['name'],
        'style' => 'margin-right:100px'
    )) ?>
    <span class="info">* PNG, max: 80x80px</span>
    <input type="file" name="file">
    <input type="submit" value="Dodaj Logo">
</form>
<p><?= $this->Html->link('&laquo; nazad', '/models', array('escape'=>false)) ?> | 
<?= $this->Html->link('obriši brend', '/models/brand_delete/' . $brand['Brand']['id'], array(
    'confirm' => 'Da li želite da obrišete brend?\nSvi modeli ovog brenda će takođe biti obrisani.'
)) ?></p>

<ul id="models-list">
    <li class="add">
        <div><a href="javascript:ModelAdd(<?= $brand['Brand']['id'] ?>)">+dodaj</a></div>
    </li>
    <? foreach($data as $k=>$row): ?>
    <li>
        <?= $row['BrandModel']['name'] ?>
        <?= $this->Html->link('x', '/models/delete/' . $brand['Brand']['id'] . '/'.
                                                            $row['BrandModel']['id'], array(
            'class'   => 'delete',
            'confirm' => 'Da li želite da obrišete model?',
            'title'   => 'Obriši'
        )) ?>
    </li>
    <? endforeach ?>
</ul>